#include <stdio.h>

int *find_middle(int a[], int n) {
    return &a[n / 2];
}

int main() {
    int arr[5] = {1,2,3,4,5};
    int *mid = find_middle(arr, 5);
    printf("中间元素是%d\n", *mid);
    int arr2[4] = {1,2,3,4};
    mid = find_middle(arr2, 4);
    printf("中间元素是%d\n", *mid);
    return 0;
}